package com.boot.shop.core.result;

import lombok.Data;

@Data
public class Page {
    private Integer pageNum = 1;
    private Integer pageSize = 10;

    //返回时才带有的参数
    private Long total = 0L;

    /**
     * 排序(默认)
     */
    private String order="id desc";


    public Page(Integer pageNum, Integer pageSize) {
        this.pageNum = pageNum;
        this.pageSize = pageSize;
    }
    public Page(){}
}
